package com.bootdo.fx.dao;

import com.bootdo.fx.domain.OrderInfoDO;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

/**
 * app_goods_order
 * @author 袁飞龙
 * @email 1992lcg@163.com
 * @date 2017-11-30 17:12:20
 */
@Mapper
public interface OrderInfoDao {

	OrderInfoDO get(Long orderId);
	
	List<OrderInfoDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(OrderInfoDO orderInfo);
	
	int update(OrderInfoDO orderInfo);
	
	int remove(Long order_id);
	
	int batchRemove(Long[] orderIds);

	/**
	 * 发货
	 * @param orderInfo
	 * @return
	 */
    int ship(OrderInfoDO orderInfo);

	List<Map<String, Object>> listOrders(Map<String, Object> map);
}
